IOMMU/x86: restrict IO-APIC mappings for PV Dom0
authorJan Beulich <jbeulich@suse.com>
Wed, 8 Jun 2022 15:02:19 +0000 (17:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Jun 2022 15:02:19 +0000 (17:02 +0200)
commit7158e80c887d8b451c8525b7fe32049742814e69
tree22dd887f6f9d9231592a2a6ad887d224ca138c97
parent28e13c7f4382f5dce6b2fb2ccef2098f22c04694
IOMMU/x86: restrict IO-APIC mappings for PV Dom0

While already the case for PVH, there's no reason to treat PV
differently here, though of course the addresses get taken from another
source in this case. Except that, to match CPU side mappings, by default
we permit r/o ones. This then also means we now deal consistently with
IO-APICs whose MMIO is or is not covered by E820 reserved regions.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/drivers/passthrough/x86/iommu.c